# SPDX-License-Identifier: GPL-2.0
#
# Makefile for building Trusted Computing Group's(TCG) runtime Integrity
# Measurement Architecture(IMA).
#

obj-$(CONFIG_IMA) += ima.o

ima-y := ima_queue.o ima_init.o ima_main.o ima_crypto.o ima_api.o \
	 ima_policy.o ima_template.o ima_template_lib.o

ifndef CONFIG_RTOS
ima-y += ima_fs.o
else
ima-y += rtos_ima_fs.o
endif

ima-$(CONFIG_IMA_APPRAISE) += ima_appraise.o
ima-$(CONFIG_IMA_APPRAISE_MODSIG) += ima_modsig.o
ima-$(CONFIG_HAVE_IMA_KEXEC) += ima_kexec.o
ima-$(CONFIG_IMA_BLACKLIST_KEYRING) += ima_mok.o
ima-$(CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS) += ima_asymmetric_keys.o
ima-$(CONFIG_IMA_QUEUE_EARLY_BOOT_KEYS) += ima_queue_keys.o
ima-$(CONFIG_IMA_DIGEST_LIST) += ima_digest_list.o
ima-$(CONFIG_RTOS_CIV_DIGEST_LIST) += rtos_ima_digest_list.o
ima-$(CONFIG_RTOS_IMA_MEASURE_THRESHOLD) += rtos_ima_measure_threshold.o
ima-$(CONFIG_RTOS_IMA_APPRAISE_FAILLOG) += rtos_ima_appraise_faillog.o
ima-$(CONFIG_RTOS_IMA_ENHANCEMENT) += rtos_ima_enhancement.o
ima-$(CONFIG_EULEROS_IMA_MEASURE_LIMITED) += ima_measure_limited.o
